<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>List don giản</title>
<link href="cs3.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.corner.js"></script>

<script> 
$(document).ready(function()
 { 
 $("#rowsp #sp").corner ("8px");
 //$("#sp").corner("dog2 30px");
}); 
</script>

<link href="jsjquery/tooltips.css" rel="stylesheet" type="text/css" />

</head>

<body>
<?php
$idhang = $_GET["idhang"];
include("kn.php");
/*$lenh = "select hinh,tenlaptop,tenhanglaptop,tenloai,concat(soluong,' Cái') as soluong,concat(format(dongia,0),' VNĐ') as dongia,malaptop,ngaynhap from laptop,hanglaptop,loailaptop where laptop.mahanglaptop = hanglaptop.mahanglaptop and laptop.maloailaptop = loailaptop.maloailaptop order by ngaynhap desc limit 0,9";*/
$lenh = "select hinh,tenlaptop,tenhanglaptop,tenloai,concat(soluong,' Cái') as soluong,concat(format(dongia,0),' VNĐ') as dongia,malaptop,ngaynhap,laptop.Mota from laptop,hanglaptop,loailaptop where laptop.mahanglaptop = hanglaptop.mahanglaptop and laptop.maloailaptop = loailaptop.maloailaptop order by ngaynhap desc limit 0,9";
$kq = mysql_query($lenh);
$sodulieu = mysql_num_rows($kq);


?>

<div id="rowsp">
<div id="dhtmltooltip"></div>
 <script type="text/javascript" src="jsjquery/tooltips.js"></script> 

<?php
	while($row = mysql_fetch_row($kq))
	{
?>
  <div id="sp">
   	<a onmouseout="hideddrivetip()" onmouseover="ddrivetip('<?php  echo $row[6];  ?>', 'lightyellow', 500)" href="#" > 	<?php echo $row[1];?></a>
  <br />
<span style="display:none" id="select_text_<?php  echo $row[6];  ?>"><? echo  $row[8];?></span>
<span style="display:none" id="select_image_<?php  echo $row[6];  ?>"><? echo  $row[0];?></span> 	

        
        <?php
		echo $row[2];
		?>
        <br />
        <?php
		echo $row[3];
		?>
        <br />
        <?php
		echo $row[4];
		?>
        <br />
        <?php
		echo $row[5];
		?>
        <br />
        <img src="laptop/<?php
		echo $row[0];
		?>" width="100" height="100" />
        <br />
      <a href="index.php?idlaptop=<?php  echo $row[6];  ?>">Xem chi tiết</a> <br />
      <a href="index.php?Malaptop=<?php echo $row[6];?>&act=gh"><img src="Template/dathang.gif" width="96" height="17" border="0" /> </a><br />
      <img src="image/New1.gif" width="41" height="22" /></div>
  	 	<?php
	
	}
	
		?>	

</div>

<br />


</body>
</html>
